<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Agent management Accounts</title>
        <meta charset="utf-8" />
        <link href="<?php echo LODE_SERVER; ?>/View/css/style.css" rel="stylesheet" />
        <link href="<?php echo LODE_SERVER; ?>/View/css/jquery-ui/jquery-ui.min.css" rel="stylesheet" />
        <link href="<?php echo LODE_SERVER; ?>/View/css/style-document-management.css" rel="stylesheet"/>
        <script src="<?php echo LODE_SERVER; ?>/View/js/lib/jquery.min.js"></script>
        <script src="<?php echo LODE_SERVER; ?>/View/js/lib/j.pages.js"></script>
        <script src="<?php echo LODE_SERVER; ?>/View/js/lib/jquery.nicescroll.js"></script>
        <script src="<?php echo LODE_SERVER; ?>/View/js/lib/jquery.ui.min.js"></script>
        <script src="<?php echo LODE_SERVER; ?>/View/js/methods.js"></script>
        <script> var URL_LODE = '<?= LODE_SERVER ?>';</script>
        <script src="<?php echo LODE_SERVER; ?>/View/js/script.management.js"></script>
    </head>
    <body>

        <div id="document">

            <!-- Start header area -->

            <div id="header">
                <?php include_once '../View/templates/managements/tmp-top-management-agent.php'; ?> 
            </div>

            <!-- End header area -->
            <!-- Start content area -->
            <div id="content">
                <div id="navSearchLangArea" class="clear">
                    <?php
                    $managementTab = "taikhoan";
                    include_once '../View/templates/managements/tmp-menu-management.php';
                    ?> 

                    <?php include_once '../View/templates/managements/tmp-lang-management.php'; ?>
                </div>
                <div id="boxManagement" class="full clear">

                    <div id="navManagement">
                        <ul class="accor-nav">

                            <li class="toggle-box">
                                <label class="title">
                                    <a href="#">
                                        <i>
                                            <img src = "<?php echo LODE_SERVER; ?>/View/resources/images/icons/players-management.png" alt = ""/>
                                        </i>
                                        <span><?= $LANG["label"]["USER"]; ?></span>
                                    </a>
                                </label>
                                <div class = "content">
                                    <ul class = "itemnav">
                                        <li>
                                            <a href = "<?php echo LODE_SERVER; ?>/View/agent-management-taikhoan.php?tab=createnewuser" data-tab="createnewuser"><?= $LANG["label"]["CREATENEWUSER"]; ?></a>
                                        </li>
                                        <li>
                                            <a href = "<?php echo LODE_SERVER; ?>/View/agent-management-taikhoan.php?tab=listofuser" data-tab="listofuser"><?= $LANG["label"]["LISTOFUSER"]; ?></a>
                                        </li>
                                        <li>
                                            <a href = "<?php echo LODE_SERVER; ?>/View/agent-management-taikhoan.php?tab=listofuserbalance" data-tab="listofuserbalance"><?= $LANG["label"]["LISTOFACCOUNT"]; ?></a>
                                        </li>

                                    </ul>
                                </div>
                            </li>

                            <li class = "toggle-box">
                                <label class = "title">
                                    <a href = "#">
                                        <i>
                                            <img src = "<?php echo LODE_SERVER; ?>/View/resources/images/icons/account-management.png" alt = ""/>
                                        </i>
                                        <span><?= $LANG["label"]["ACCOUNT"]; ?></span>
                                    </a>
                                </label>
                                <div class = "content">
                                    <ul class = "itemnav">
                                        <li>
                                            <a href = "<?php echo LODE_SERVER; ?>/View/agent-management-taikhoan.php?tab=accountbalanceuser" data-tab="accountbalanceuser"><?= $LANG["label"]["ACCOUNT"]; ?></a>
                                        </li>
                                        <li>
                                            <a href = "<?php echo LODE_SERVER; ?>/View/agent-management-taikhoan.php?tab=changepassworduser" data-tab="changepassworduser"><?= $LANG["label"]["CHANGEPASSWORD"]; ?></a>
                                        </li>
                                        <li>
                                            <a href="<?php echo LODE_SERVER; ?>/View/login.php?action=LOGOUTAGENT"><?= $LANG["label"]["LOGOFF"]; ?></a>
                                        </li>
                                    </ul>
                                </div>
                            </li>

                        </ul>
                    </div>
                    <script>
                        $('#navManagement ul.itemnav >li a[data-tab|="<?= $tab ?>"]').parent('li').addClass('actived').closest('li.toggle-box').addClass('expanded');
                    </script>

                    <div id = "contentManagement">
                        <div class="overlay-loading"></div>
                        <div class="content">
                            <?php
                            if ($tab === "createnewuser") {
                                include_once '../View/templates/managements/agent/accounts/tmp-account-user-create-new.php';
                            } else if ($tab === "listofuser") {
                                if ($action === "" || $action === "listofuser") {
                                    include_once '../View/templates/managements/agent/accounts/tmp-account-user-list.php';
                                } else if ($action === "loaddetailuserupdate") {
                                    include_once '../View/templates/managements/agent/accounts/tmp-account-user-update.php';
                                }
                            } else if ($tab === "accountbalanceuser") {
                                include_once '../View/templates/managements/agent/accounts/tmp-account-user-balance-infor.php';
                            } else if ($tab === "listofuserbalance") {
                                include_once '../View/templates/managements/agent/accounts/tmp-account-user-balance-list.php';
                            } else if ($tab === "changepassworduser") {
                                include_once '../View/templates/managements/agent/accounts/tmp-account-user-change-password.php';
                            }
                            ?>
                        </div>
                    </div>

                </div>
            </div>

            <!--End content area -->

        </div>
    </body>
</html>
